package com.fushenlan.epidemicControl.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @date 2022/5/2 11:44
 */
@ConfigurationProperties(prefix = "jwt")
@Component
@Data
public class JwtProperties {

    //定义token返回头部
    private String header;

    //token前缀
    private String tokenPrefix;

    //签名密钥
    private String secret;

    //有效期，单位：秒
    private int expireTime;
}
